package com.lin.operatorlogrecord.entity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lin.operatorlogrecord.entity.annotation.FieldIdentifyAnnotation;
import com.lin.operatorlogrecord.entity.constant.TableNameConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author: chenghao.lin
 * @Date: 2023/09/25
 * @Description:
 */
@Getter
@Setter
@TableName(TableNameConstant.ROLE)
public class Role {


    /**
     * 主键，不支持为null
     */
    @TableId(value = "obj_id", type = IdType.ASSIGN_ID)
    private String objId;


    /**
     * 角色名，不支持为null
     */
    @TableField("name")
    @FieldIdentifyAnnotation(filedName = "角色名")
    private String name;


}
